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, hasResponse
add, addAll, equals, get, getControls, getMessageId, getType, hasControl, put, remove
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
hasResponse
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
protected AbstractAbandonableRequest(int id, MessageTypeEnum type)
id
- the sequential message identifiertype
- the request type enumpublic void abandon()
InternalAbandonableRequest
abandon
in interface InternalAbandonableRequest
public boolean isAbandoned()
InternalAbandonableRequest
isAbandoned
in interface InternalAbandonableRequest
public void addAbandonListener(AbandonListener listener)
InternalAbandonableRequest
addAbandonListener
in interface InternalAbandonableRequest
listener
- to be notified if this request gets abandoned.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.