Package org.distributeme.core
Class Defaults
java.lang.Object
org.distributeme.core.Defaults
This class provides methods for runtime overriding of the default behaviour.
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner configuration holder class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final intgetAsynchExecutorPoolSize.static final longgetDefaultAsynchCallTimeout.static final ConcurrencyControlStrategygetDefaultConcurrencyControlStrategy.static final FailingStrategyReturns the default failing strategy.static final intHow many errors a RemoteConsumerWrapper can encounter before rendering itself inactive and cuting of this consumer.
-
Constructor Details
-
Defaults
public Defaults()
-
-
Method Details
-
getDefaultFailingStrategy
Returns the default failing strategy.- Returns:
- a
FailingStrategyobject.
-
getDefaultConcurrencyControlStrategy
getDefaultConcurrencyControlStrategy.
- Returns:
- a
ConcurrencyControlStrategyobject.
-
getDefaultAsynchCallTimeout
public static final long getDefaultAsynchCallTimeout()getDefaultAsynchCallTimeout.
- Returns:
- a long.
-
getAsynchExecutorPoolSize
public static final int getAsynchExecutorPoolSize()getAsynchExecutorPoolSize.
- Returns:
- a int.
-
getRemoteConsumerWrapperErrorLimit
public static final int getRemoteConsumerWrapperErrorLimit()How many errors a RemoteConsumerWrapper can encounter before rendering itself inactive and cuting of this consumer. DEFAULT = 5.- Returns:
-