Class AbstractAbandonableRequest
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest
- All Implemented Interfaces:
AbandonableRequest, Message, Request
- Direct Known Subclasses:
AddRequestImpl, BindRequestImpl, CompareRequestImpl, DeleteRequestImpl, ModifyDnRequestImpl, ModifyRequestImpl, SearchRequestImpl
public abstract class AbstractAbandonableRequest
extends AbstractRequest
implements AbandonableRequest
The base abandonable request message class. All such requests have a response
type.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAbandonableRequest(int id, MessageTypeEnum type) Subclasses must provide these parameters via a super constructor call. -
Method Summary
Modifier and TypeMethodDescriptionvoidabandon()Abandons this request.addAbandonListener(AbandonListener listener) Adds listener to be notified if this request gets abandoned.booleanChecks to see if this request has been abandoned.Methods inherited from class AbstractRequest
equals, hashCode, hasResponseMethods inherited from class AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdMethods inherited from interface Request
hasResponse
-
Constructor Details
-
AbstractAbandonableRequest
Subclasses must provide these parameters via a super constructor call.- Parameters:
id- the sequential message identifiertype- the request type enum
-
-
Method Details
-
abandon
-
isAbandoned
public boolean isAbandoned()Checks to see if this request has been abandoned.- Specified by:
isAbandonedin interfaceAbandonableRequest- Returns:
- true if the request has been abandoned.
-
addAbandonListener
Adds listener to be notified if this request gets abandoned.- Specified by:
addAbandonListenerin interfaceAbandonableRequest- Parameters:
listener- to be notified if this request gets abandoned.- Returns:
- An AbandonableRequest reference
-