public class SyncReplItem extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SyncReplItem.Entry
Wrapper class that provides easy access to the
SyncStateControl contained in a search entry. |
static class |
SyncReplItem.Response
Wrapper class that provides easy access to the
SyncDoneControl contained in a response. |
Modifier and Type | Field and Description |
---|---|
private AsyncRequest |
asyncRequest
Async request from the search operation.
|
private SyncInfoMessage |
syncInfoMessage
Message contained in this sync repl item.
|
private SyncReplItem.Entry |
syncReplEntry
Entry contained in this sync repl item.
|
private Exception |
syncReplException
Exception thrown by the search operation.
|
private SyncReplItem.Response |
syncReplResponse
Response contained in this sync repl item.
|
Constructor and Description |
---|
SyncReplItem(AsyncRequest request)
Creates a new sync repl item.
|
SyncReplItem(Exception exception)
Creates a new sync repl item.
|
SyncReplItem(SyncInfoMessage message)
Creates a new sync repl item.
|
SyncReplItem(SyncReplItem.Entry entry)
Creates a new sync repl item.
|
SyncReplItem(SyncReplItem.Response response)
Creates a new sync repl item.
|
Modifier and Type | Method and Description |
---|---|
AsyncRequest |
getAsyncRequest()
Returns the async request contained in this item or null if this item does not contain an async request.
|
SyncReplItem.Entry |
getEntry()
Returns the entry contained in this item or null if this item does not contain an entry.
|
Exception |
getException()
Returns the exception contained in this item or null if this item does not contain an exception.
|
SyncInfoMessage |
getMessage()
Returns the intermediate message contained in this item or null if this item does not contain a message.
|
SyncReplItem.Response |
getResponse()
Returns the response contained in this item or null if this item does not contain a response.
|
boolean |
isAsyncRequest()
Returns whether this item represents an async request.
|
boolean |
isEntry()
Returns whether this item represents a search entry.
|
boolean |
isException()
Returns whether this item represents an exception.
|
boolean |
isMessage()
Returns whether this item represents an intermediate message.
|
boolean |
isResponse()
Returns whether this item represents a response.
|
String |
toString() |
private final AsyncRequest asyncRequest
private final SyncReplItem.Entry syncReplEntry
private final SyncInfoMessage syncInfoMessage
private final SyncReplItem.Response syncReplResponse
private final Exception syncReplException
public SyncReplItem(AsyncRequest request)
request
- that represents this itempublic SyncReplItem(SyncReplItem.Entry entry)
entry
- that represents this itempublic SyncReplItem(SyncInfoMessage message)
message
- that represents this itempublic SyncReplItem(SyncReplItem.Response response)
response
- that represents this itempublic SyncReplItem(Exception exception)
exception
- that represents this itempublic boolean isAsyncRequest()
public AsyncRequest getAsyncRequest()
public boolean isEntry()
public SyncReplItem.Entry getEntry()
public boolean isMessage()
public SyncInfoMessage getMessage()
public boolean isResponse()
public SyncReplItem.Response getResponse()
public boolean isException()
public Exception getException()
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.