Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.dottydingo.service.endpoint.pipeline;
 
 
    public void setContextStatusRegistry(ContextStatusRegistry contextStatusRegistry)
    {
        this. = contextStatusRegistry;
    }
    @Override
    public void execute(C phaseContext)
    {
        ContextStatus status = .getContextStatus(phaseContext.getRequestId());
        if(status != null)
            status.startTimer(String.format("phase:%s - queued",.getName()));
        super.execute(phaseContext);
    }
    @Override
    public void run(C phaseContext)
    {
        ContextStatus status = .getContextStatus(phaseContext.getRequestId());
        if(status != null)
            status.stopTimer(String.format("phase:%s - queued",.getName()));
        super.run(phaseContext);
    }
New to GrepCode? Check out our FAQ X