Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2012 Ness Computing, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package com.nesscomputing.concurrent;
 
 
 
 {
     private final ThreadPoolExecutor service;
 
     {
         this. = service;
     }
 
     @Override
     @Managed
     public boolean isShutdown()
     {
         return .isShutdown();
     }
 
     @Override
     @Managed
     public boolean isTerminated()
     {
         return .isTerminated();
     }
 
     @Override
     @Managed
     public boolean isTerminating()
     {
         return .isTerminating();
     }
 
     @Override
     @Managed
     {
         return .getRejectedExecutionHandler().toString();
     }
 
     @Override
     @Managed
     public int getCorePoolSize()
     {
         return .getCorePoolSize();
     }
 
     @Override
     @Managed
     public void setCorePoolSize(int corePoolSize)
     {
         .setCorePoolSize(corePoolSize);
     }
 
     @Override
     @Managed
     public int getMaximumPoolSize()
     {
         return .getMaximumPoolSize();
     }
 
     @Override
     @Managed
     public void setMaximumPoolSize(int maximumPoolSize)
     {
         .setMaximumPoolSize(maximumPoolSize);
     }
 
     @Override
     @Managed
     public long getKeepAliveTime()
     {
         return .getKeepAliveTime(.);
     }
 
     @Override
     @Managed
     public void setKeepAliveTime(String keepAliveTime)
     {
        setKeepAliveTime(new TimeSpan(keepAliveTime).getMillis());
    }
    @Override
    @Managed
    public void setKeepAliveTime(long keepAliveTimeMs)
    {
        .setKeepAliveTime(keepAliveTimeMs.);
    }
    @Override
    @Managed
    public int getQueueCurrentSize()
    {
        return .getQueue().size();
    }
    @Override
    @Managed
    public int getQueueRemainingSize()
    {
        return .getQueue().remainingCapacity();
    }
    @Override
    @Managed
    public int getCurrentPoolSize()
    {
        return .getPoolSize();
    }
    @Override
    @Managed
    public int getCurrentlyActiveThreads()
    {
        return .getActiveCount();
    }
    @Override
    @Managed
    public int getLargestPoolSize()
    {
        return .getLargestPoolSize();
    }
    @Override
    @Managed
    public long getEnqueuedTaskCount()
    {
        return .getTaskCount();
    }
    @Override
    @Managed
    public long getCompletedTaskCount()
    {
        return .getCompletedTaskCount();
    }
New to GrepCode? Check out our FAQ X