org.talend.esb.sam.common.event
Class Event

java.lang.Object
  extended by org.talend.esb.sam.common.event.Event
All Implemented Interfaces:
Serializable

public class Event
extends Object
implements Serializable

The Class Event.

See Also:
Serialized Form

Constructor Summary
Event()
          Instantiates a new event.
 
Method Summary
 String getContent()
          Gets the content.
 Map<String,String> getCustomInfo()
          Gets the custom info.
 EventTypeEnum getEventType()
          Gets the event type.
 MessageInfo getMessageInfo()
          Gets the message info.
 Originator getOriginator()
          Gets the originator.
 Long getPersistedId()
          Gets the persisted id.
 Date getTimestamp()
          Gets the timestamp.
 boolean isContentCut()
          Checks if is content cut.
 void setContent(String content)
          Sets the content.
 void setContentCut(boolean contentCut)
          Sets the content cut.
 void setEventType(EventTypeEnum eventType)
          Sets the event type.
 void setMessageInfo(MessageInfo messageInfo)
          Sets the message info.
 void setOriginator(Originator originator)
          Sets the originator.
 void setPersistedId(Long persistedId)
          Sets the persisted id.
 void setTimestamp(Date timestamp)
          Sets the timestamp.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event()
Instantiates a new event.

Method Detail

getPersistedId

public Long getPersistedId()
Gets the persisted id.

Returns:
the persisted id

setPersistedId

public void setPersistedId(Long persistedId)
Sets the persisted id.

Parameters:
persistedId - the new persisted id

getTimestamp

public Date getTimestamp()
Gets the timestamp.

Returns:
the timestamp

setTimestamp

public void setTimestamp(Date timestamp)
Sets the timestamp.

Parameters:
timestamp - the new timestamp

getEventType

public EventTypeEnum getEventType()
Gets the event type.

Returns:
the event type

setEventType

public void setEventType(EventTypeEnum eventType)
Sets the event type.

Parameters:
eventType - the new event type

getOriginator

public Originator getOriginator()
Gets the originator.

Returns:
the originator

setOriginator

public void setOriginator(Originator originator)
Sets the originator.

Parameters:
originator - the new originator

getMessageInfo

public MessageInfo getMessageInfo()
Gets the message info.

Returns:
the message info

setMessageInfo

public void setMessageInfo(MessageInfo messageInfo)
Sets the message info.

Parameters:
messageInfo - the new message info

setContentCut

public void setContentCut(boolean contentCut)
Sets the content cut.

Parameters:
contentCut - the new content cut

isContentCut

public boolean isContentCut()
Checks if is content cut.

Returns:
true, if is content cut

getContent

public String getContent()
Gets the content.

Returns:
the content

setContent

public void setContent(String content)
Sets the content.

Parameters:
content - the new content

getCustomInfo

public Map<String,String> getCustomInfo()
Gets the custom info.

Returns:
the custom info

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011–2014 Talend Inc.. All rights reserved.