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. |
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() |
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 © 2016. All rights reserved.