public class AsyncWrite extends AbstractState<WriteState,ServiceResultException>
| Constructor and Description |
|---|
AsyncWrite(IEncodeable messageToWrite,
List<Locale> localePreferences)
Constructor for AsyncWrite.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attemptSetError(ServiceResultException ex)
attemptSetError.
|
boolean |
cancel()
cancel.
|
List<Locale> |
getLocales() |
IEncodeable |
getMessage()
getMessage.
|
boolean |
isCanceled()
isCanceled.
|
void |
setError(ServiceResultException ex)
setError.
|
void |
setQueued()
setQueued.
|
void |
setWriting()
setWriting.
|
void |
setWritten()
setWritten.
|
addStateListener, addStateNotifiable, attemptSetState, clearError, getError, getState, hasError, isStateTransitionAllowed, onListenerException, onStateTransition, removeStateListener, removeStateNotifiable, setState, setState, throwIfError, waitForState, waitForState, waitForStateUninterruptiblypublic AsyncWrite(IEncodeable messageToWrite, List<Locale> localePreferences)
Constructor for AsyncWrite.
messageToWrite - the messagelocalePreferences - list of Locale preferences (or null if none)public void attemptSetError(ServiceResultException ex)
attemptSetError.
ex - a ServiceResultException object.public boolean cancel()
cancel.
public IEncodeable getMessage()
getMessage.
IEncodeable object.public boolean isCanceled()
isCanceled.
public void setError(ServiceResultException ex)
setError.
setError in class AbstractState<WriteState,ServiceResultException>ex - a ServiceResultException object.public void setQueued()
setQueued.
public void setWriting()
setWriting.
public void setWritten()
setWritten.
Copyright © 2026. All rights reserved.