net.therore.concurrent
Class SampleContainer

java.lang.Object
  extended by net.therore.concurrent.SampleContainer

public class SampleContainer
extends Object


Nested Class Summary
static class SampleContainer.ExecutionState
           
static class SampleContainer.Sample
           
 
Field Summary
static int MIN_SLOT_EXECUTIONS
           
static long OVERHEAD_RELATION
          if OVERHEAD_RELATION = 1, It allows 100% of overhead if OVERHEAD_RELATION = 100, It allows 1% of overhead
 
Constructor Summary
SampleContainer(int initValue)
           
 
Method Summary
 int annotationExecution(long timestamp, ParameterOptimizer poolSizeCalculator, SampleContainer.ExecutionState state)
           
 double getThroughput()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OVERHEAD_RELATION

public static final long OVERHEAD_RELATION
if OVERHEAD_RELATION = 1, It allows 100% of overhead if OVERHEAD_RELATION = 100, It allows 1% of overhead

See Also:
Constant Field Values

MIN_SLOT_EXECUTIONS

public static final int MIN_SLOT_EXECUTIONS
See Also:
Constant Field Values
Constructor Detail

SampleContainer

public SampleContainer(int initValue)
Method Detail

getThroughput

public double getThroughput()
Returns:
executions per second

annotationExecution

public int annotationExecution(long timestamp,
                               ParameterOptimizer poolSizeCalculator,
                               SampleContainer.ExecutionState state)

toString

public String toString()
Overrides:
toString in class Object

Copyright 2014 Alfredo Diaz (therore.net)

Copyright © 2014. All rights reserved.