public final class DOFDomain
extends java.lang.Object
DOFDomain.Config.getMaxSilence()
. If the route fails to re-validate, the resulting behavior is determined by the type
of domain.
There are 4 varieties of domains:
DOFConnection.Config.Builder.addDomains(org.opendof.core.oal.DOFDomain.Config...)
.DOFConnection.addDomain(org.opendof.core.oal.DOFDomain.Config)
.DOF.createDomain(org.opendof.core.oal.DOFDomain.Config)
Modifier and Type | Class and Description |
---|---|
static class |
DOFDomain.Config
Represents a configuration for a DOFDomain.
|
static interface |
DOFDomain.State
This class represents the instantaneous state of a
DOFDomain . |
static interface |
DOFDomain.StateListener
This interface can be implemented to provide a listener for the state of a
DOFDomain . |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_SILENCE
The default max silence for a DOFDomain object in milliseconds.
|
static int |
DEFAULT_RETRY_PERIOD
The default retry period for a DOFDomain object in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
void |
addStateListener(DOFDomain.StateListener listener)
Add a new state listener to the domain.
|
void |
destroy()
Destroys an domain.
|
DOFDomain.State |
getState()
Get the current instantaneous state of the domain.
|
void |
removeStateListener(DOFDomain.StateListener listener)
Remove a state listener from the domain.
|
java.lang.String |
toString() |
public static final int DEFAULT_MAX_SILENCE
public static final int DEFAULT_RETRY_PERIOD
public DOFDomain.State getState()
public void addStateListener(DOFDomain.StateListener listener)
listener
- The new listenerpublic void removeStateListener(DOFDomain.StateListener listener)
listener
- The listener to remove.public void destroy()
public java.lang.String toString()
toString
in class java.lang.Object