public static class NotificationClient.NotificationItem
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private AsyncRequest |
asyncRequest
Async request from the search operation.
|
private SearchEntry |
searchEntry
Entry contained in this notification item.
|
private java.lang.Exception |
searchException
Exception thrown by the search operation.
|
private Response |
searchResponse
Response contained in this notification item.
|
| Constructor and Description |
|---|
NotificationItem(AsyncRequest request)
Creates a new notification item.
|
NotificationItem(java.lang.Exception exception)
Creates a new notification item.
|
NotificationItem(Response response)
Creates a new notification item.
|
NotificationItem(SearchEntry entry)
Creates a new notification 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.
|
SearchEntry |
getEntry()
Returns the search entry contained in this item or null if this item does not contain a search entry.
|
java.lang.Exception |
getException()
Returns the exception contained in this item or null if this item does not contain an exception.
|
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 |
isResponse()
Returns whether this item represents a response.
|
java.lang.String |
toString() |
private final AsyncRequest asyncRequest
private final SearchEntry searchEntry
private final Response searchResponse
private final java.lang.Exception searchException
public NotificationItem(AsyncRequest request)
request - that represents this itempublic NotificationItem(SearchEntry entry)
entry - that represents this itempublic NotificationItem(Response response)
response - that represents this itempublic NotificationItem(java.lang.Exception exception)
exception - that represents this itempublic boolean isAsyncRequest()
public AsyncRequest getAsyncRequest()
public boolean isEntry()
public SearchEntry getEntry()
public boolean isResponse()
public Response getResponse()
public boolean isException()
public java.lang.Exception getException()
public java.lang.String toString()
toString in class java.lang.Object