public class AbstractAbandonableRequest extends InternalAbstractRequest implements InternalAbandonableRequest
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAbandonableRequest(int id,
MessageTypeEnum type)
Subclasses must provide these parameters via a super constructor call.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abandon()
Abandons this request.
|
void |
addAbandonListener(AbandonListener listener)
Adds listener to be notified if this request gets abandoned.
|
boolean |
isAbandoned()
Checks to see if this request has been abandoned.
|
hashCode, hasResponseadd, addAll, equals, get, getControls, getMessageId, getType, hasControl, put, removeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waithasResponseadd, addAll, get, getControls, getMessageId, getType, hasControl, put, removeprotected AbstractAbandonableRequest(int id,
MessageTypeEnum type)
id - the sequential message identifiertype - the request type enumpublic void abandon()
InternalAbandonableRequestabandon in interface InternalAbandonableRequestpublic boolean isAbandoned()
InternalAbandonableRequestisAbandoned in interface InternalAbandonableRequestpublic void addAbandonListener(AbandonListener listener)
InternalAbandonableRequestaddAbandonListener in interface InternalAbandonableRequestlistener - to be notified if this request gets abandoned.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.