Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.dropwizard.lifecycle;
 
 
 public class ExecutorServiceManager implements Managed {
     private final ExecutorService executor;
     private final long shutdownPeriod;
     private final TimeUnit unit;
    private final String poolName;
    public ExecutorServiceManager(ExecutorService executorlong shutdownPeriodTimeUnit unitString poolName) {
        this. = executor;
        this. = shutdownPeriod;
        this. = unit;
        this. = poolName;
    }
    @Override
    public void start() throws Exception {
        // OK BOSS
    }
    @Override
    public void stop() throws Exception {
        .shutdown();
    }
    @Override
    public String toString() {
        return super.toString() + '(' +  + ')';
    }
New to GrepCode? Check out our FAQ X