public final class SOMReceptionist extends Receptionist.Abstract
Receptionist.Abstract| Modifier and Type | Field and Description |
|---|---|
static String |
QUEUE_PROPERTIES
The reception queue properties.
|
DEFAULT_WAIT, WAIT_PROPERTY| Constructor and Description |
|---|
SOMReceptionist() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose()
Closes the input Queue.
|
protected void |
doCommit()
Registers that the notices have been processed.
|
protected Optional<PointValue> |
doFetchNotice(int limit,
long wait)
Fetches a notice.
|
protected void |
doOpen()
Opens the input Queue.
|
protected void |
doRollback()
Forgets that the notices have been received.
|
boolean |
setUp(Metadata metadata)
Sets up access to the messaging system.
|
void |
tearDown()
Tears down what has been set up.
|
close, commit, fetchNotices, getMetadata, getThisLogger, open, receptionTime, rollbackpublic static final String QUEUE_PROPERTIES
public boolean setUp(Metadata metadata)
setUp in interface ReceptionistsetUp in class Receptionist.Abstractmetadata - The processor metadata.public void tearDown()
tearDown in interface ReceptionisttearDown in class Receptionist.Abstractprotected void doClose()
Called while synchronized on this. May be called while already closed.
doClose in class Receptionist.Abstractprotected void doCommit()
throws InterruptedException,
ServiceNotAvailableException
Called while synchronized on this.
doCommit in class Receptionist.AbstractInterruptedException - When the Service is stopped.ServiceNotAvailableException - When the service is not
available.protected Optional<PointValue> doFetchNotice(int limit, long wait) throws ServiceNotAvailableException
doFetchNotice in class Receptionist.Abstractlimit - The read ahead limit.wait - Negative is forever, 0 is no wait, other is milliseconds.ServiceNotAvailableException - When the service is not
available.protected void doOpen()
Called while synchronized on this.
doOpen in class Receptionist.Abstractprotected void doRollback()
throws InterruptedException,
ServiceNotAvailableException
doRollback in class Receptionist.AbstractInterruptedException - When the Service is stopped.ServiceNotAvailableException - When the service is not
available.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.