public class MemoryNotificationInvocationLogger.MemoryEntry extends Object implements NotificationInvocationLogger.Entry
NotificationInvocationLogger.Entry.Status| Constructor and Description |
|---|
MemoryEntry(W3CEndpointReference endpointReference,
NotificationMessage message)
construct a new message.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
commit()
finalize log entry.
|
void |
failure(Throwable exc)
commits the log entry tagging it as failed.
|
String |
getDestination()
get destination.
|
W3CEndpointReference |
getDestinationEpr() |
String |
getDuration()
Human readable duration.
|
String |
getErrorMessage()
Get exception error message or empty string if succeded.
|
Throwable |
getException()
get exception.
|
Date |
getFinish()
get finish date time.
|
NotificationMessage |
getMessage()
get log message.
|
Date |
getStart()
get start date time.
|
NotificationInvocationLogger.Entry.Status |
getStatus()
get log status.
|
void |
ongoing()
sets the status to ongoing.
|
void |
setDestinationEpr(W3CEndpointReference destinationEpr) |
void |
setException(Throwable exception) |
void |
setFinish(Date finish) |
void |
setMessage(NotificationMessage message) |
void |
setStart(Date start) |
void |
setStatus(NotificationInvocationLogger.Entry.Status status) |
void |
success()
commits the log entry tagging it as succeeded.
|
public MemoryEntry(W3CEndpointReference endpointReference, NotificationMessage message)
endpointReference - destinationmessage - messagepublic void ongoing()
ongoing in interface NotificationInvocationLogger.EntryNotificationInvocationLogger.Entry.ongoing()public void failure(Throwable exc)
failure in interface NotificationInvocationLogger.Entryexc - throwable, cause of failureNotificationInvocationLogger.Entry.failure(java.lang.Throwable)public void success()
success in interface NotificationInvocationLogger.EntryNotificationInvocationLogger.Entry.success()protected void commit()
public NotificationMessage getMessage()
NotificationInvocationLogger.EntrygetMessage in interface NotificationInvocationLogger.Entrypublic void setMessage(NotificationMessage message)
public Throwable getException()
NotificationInvocationLogger.EntrygetException in interface NotificationInvocationLogger.Entrypublic void setException(Throwable exception)
public NotificationInvocationLogger.Entry.Status getStatus()
NotificationInvocationLogger.EntrygetStatus in interface NotificationInvocationLogger.Entrypublic void setStatus(NotificationInvocationLogger.Entry.Status status)
public W3CEndpointReference getDestinationEpr()
public void setDestinationEpr(W3CEndpointReference destinationEpr)
public String getDestination()
NotificationInvocationLogger.EntrygetDestination in interface NotificationInvocationLogger.Entrypublic String getErrorMessage()
getErrorMessage in interface NotificationInvocationLogger.EntryNotificationInvocationLogger.Entry.getErrorMessage()public Date getStart()
NotificationInvocationLogger.EntrygetStart in interface NotificationInvocationLogger.Entrypublic void setStart(Date start)
public Date getFinish()
NotificationInvocationLogger.EntrygetFinish in interface NotificationInvocationLogger.Entrypublic void setFinish(Date finish)
public String getDuration()
getDuration in interface NotificationInvocationLogger.EntryNotificationInvocationLogger.Entry.getDuration()Copyright © 2017. All rights reserved.