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, rollback
public static final String QUEUE_PROPERTIES
public boolean setUp(Metadata metadata)
setUp
in interface Receptionist
setUp
in class Receptionist.Abstract
metadata
- The processor metadata.public void tearDown()
tearDown
in interface Receptionist
tearDown
in class Receptionist.Abstract
protected void doClose()
Called while synchronized on this. May be called while already closed.
doClose
in class Receptionist.Abstract
protected void doCommit() throws InterruptedException, ServiceNotAvailableException
Called while synchronized on this.
doCommit
in class Receptionist.Abstract
InterruptedException
- 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.Abstract
limit
- 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.Abstract
protected void doRollback() throws InterruptedException, ServiceNotAvailableException
doRollback
in class Receptionist.Abstract
InterruptedException
- When the Service is stopped.ServiceNotAvailableException
- When the service is not
available.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.