public class GrouperMessageHibernate extends GrouperAPI implements GrouperMessage, Hib3GrouperVersioned
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_ATTEMPT_TIME_EXPIRES_MILLIS
milliseconds since 1970 that the message was attempted to be received
|
static String |
COLUMN_FROM_MEMBER_ID
member id of user who sent the message
|
static String |
COLUMN_GET_ATTEMPT_COUNT
how many times this message has been attempted to be retrieved
|
static String |
COLUMN_GET_ATTEMPT_TIME_MILLIS
milliseconds since 1970 that the message was attempted to be received
|
static String |
COLUMN_GET_TIME_MILLIS
millis since 1970 that this message was successfully received
|
static String |
COLUMN_HIBERNATE_VERSION_NUMBER
hibernate version
|
static String |
COLUMN_ID
db uuid for this row
|
static String |
COLUMN_MESSAGE_BODY
message body
|
static String |
COLUMN_QUEUE_NAME
queue name for the message
|
static String |
COLUMN_SENT_TIME_MICROS
microseconds since 1970 this message was sent (note this is probably unique, but not necessarily)
|
static String |
COLUMN_STATE
state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSED
|
static String |
FIELD_CONTEXT_ID
constant for field name for: contextId
|
static String |
FIELD_ID
constant for field name for: id
|
static String |
TABLE_GROUPER_MESSAGE
name of the table in the database.
|
dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Constructor and Description |
---|
GrouperMessageHibernate() |
Modifier and Type | Method and Description |
---|---|
GrouperAPI |
clone()
deep clone the fields in this object
|
void |
delete()
delete this object
|
Long |
getAttemptTimeExpiresMillis()
millis since 1970 that this message attempt expires if not sent successfully
note this will be reset to null when message sent successfully
|
String |
getContextId() |
String |
getFromMemberId() |
Integer |
getGetAttemptCount()
how many times this message has been attempted to be retrieved
|
Long |
getGetAttemptTimeMillis()
milliseconds since 1970 that the message was attempted to be received
|
Long |
getGetTimeMillis()
millis since 1970 that this message was successfully received
|
String |
getId() |
String |
getMessageBody()
body of message (e.g.
|
String |
getQueueName()
queue name for the message
|
String |
getQueueOrTopic() |
Long |
getSentTimeMicros()
millis since 1970 that this message was sent
|
String |
getState()
state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSED
|
void |
saveOrUpdate()
save or update this object
|
void |
setAttemptTimeExpiresMillis(Long attemptTimeExpiresMillis1)
millis since 1970 that this message attempt expires if not sent successfully
note this will be reset to null when message sent successfully
|
void |
setContextId(String contextId1)
set context id
|
void |
setFromMemberId(String fromMemberId1) |
void |
setGetAttemptCount(Integer getAttemptCount1) |
void |
setGetAttemptTimeMillis(Long getAttemptTimeMillis1)
milliseconds since 1970 that the message was attempted to be received
|
void |
setGetTimeMillis(Long getTimeMillis1)
millis since 1970 that this message was successfully received
|
void |
setId(String id1) |
void |
setMessageBody(String messageBody1)
body of message (e.g.
|
void |
setQueueName(String queueName1)
queue name for the message
|
void |
setQueueOrTopic(String theQueueOrTopic1) |
void |
setSentTimeMicros(Long sentTimeMicros1)
millis since 1970 that this message was sent
|
void |
setState(String state1)
state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSED
|
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onPreSave, onPreUpdate, onSave, onUpdate, setHibernateVersionNumber
public static final String COLUMN_ID
public static final String COLUMN_HIBERNATE_VERSION_NUMBER
public static final String FIELD_CONTEXT_ID
public static final String FIELD_ID
public static final String COLUMN_SENT_TIME_MICROS
public static final String COLUMN_GET_ATTEMPT_TIME_MILLIS
public static final String COLUMN_ATTEMPT_TIME_EXPIRES_MILLIS
public static final String COLUMN_GET_ATTEMPT_COUNT
public static final String COLUMN_STATE
public static final String COLUMN_GET_TIME_MILLIS
public static final String COLUMN_FROM_MEMBER_ID
public static final String COLUMN_QUEUE_NAME
public static final String COLUMN_MESSAGE_BODY
public static final String TABLE_GROUPER_MESSAGE
public Long getAttemptTimeExpiresMillis()
public void setAttemptTimeExpiresMillis(Long attemptTimeExpiresMillis1)
attemptTimeExpiresMillis1
- the attemptTimeExpiresMillis to setpublic String getState()
public void setState(String state1)
state1
- the state to setpublic void setId(String id1)
setId
in interface GrouperMessage
id1
- the id to setpublic String getFromMemberId()
getFromMemberId
in interface GrouperMessage
GrouperMessage.getFromMemberId()
public String getId()
getId
in interface GrouperMessage
public String getMessageBody()
getMessageBody
in interface GrouperMessage
public void setFromMemberId(String fromMemberId1)
setFromMemberId
in interface GrouperMessage
GrouperMessage.setFromMemberId(java.lang.String)
public void setMessageBody(String messageBody1)
setMessageBody
in interface GrouperMessage
messageBody1
- the messageBody to setpublic Long getSentTimeMicros()
public void setSentTimeMicros(Long sentTimeMicros1)
sentTimeMicros1
- the sentTimeMicros to setpublic String getQueueName()
public void setQueueName(String queueName1)
queueName1
- the queueName to setpublic Long getGetTimeMillis()
public void setGetTimeMillis(Long getTimeMillis1)
getTimeMillis1
- the getTimeMillis to setpublic Long getGetAttemptTimeMillis()
public void setGetAttemptTimeMillis(Long getAttemptTimeMillis1)
getAttemptTimeMillis1
- the getAttemptTimeMillis to setpublic Integer getGetAttemptCount()
public void setGetAttemptCount(Integer getAttemptCount1)
getAttemptCount1
- the getAttemptCount to setpublic GrouperAPI clone()
GrouperAPI
clone
in interface GrouperCloneable
clone
in class GrouperAPI
GrouperAPI.clone()
public String getContextId()
public void setContextId(String contextId1)
contextId1
- public void saveOrUpdate()
public void delete()
public String getQueueOrTopic()
public void setQueueOrTopic(String theQueueOrTopic1)
theQueueOrTopic1
- Copyright © 2016 Internet2. All rights reserved.