Class GrouperMessageHibernate

java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.messaging.GrouperMessageHibernate
All Implemented Interfaces:
HibGrouperLifecycle, Hib3GrouperVersioned, GrouperCloneable, GrouperUtil.FieldValuable, GrouperMessage, Serializable, org.hibernate.classic.Lifecycle

public class GrouperMessageHibernate extends GrouperAPI implements GrouperMessage, Hib3GrouperVersioned
See Also:
  • Field Details

    • COLUMN_ID

      public static final String COLUMN_ID
      db uuid for this row
      See Also:
    • COLUMN_HIBERNATE_VERSION_NUMBER

      public static final String COLUMN_HIBERNATE_VERSION_NUMBER
      hibernate version
      See Also:
    • FIELD_CONTEXT_ID

      public static final String FIELD_CONTEXT_ID
      constant for field name for: contextId
      See Also:
    • FIELD_ID

      public static final String FIELD_ID
      constant for field name for: id
      See Also:
    • COLUMN_SENT_TIME_MICROS

      public static final String COLUMN_SENT_TIME_MICROS
      microseconds since 1970 this message was sent (note this is probably unique, but not necessarily)
      See Also:
    • COLUMN_GET_ATTEMPT_TIME_MILLIS

      public static final String COLUMN_GET_ATTEMPT_TIME_MILLIS
      milliseconds since 1970 that the message was attempted to be received
      See Also:
    • COLUMN_ATTEMPT_TIME_EXPIRES_MILLIS

      public static final String COLUMN_ATTEMPT_TIME_EXPIRES_MILLIS
      milliseconds since 1970 that the message was attempted to be received
      See Also:
    • COLUMN_GET_ATTEMPT_COUNT

      public static final String COLUMN_GET_ATTEMPT_COUNT
      how many times this message has been attempted to be retrieved
      See Also:
    • COLUMN_STATE

      public static final String COLUMN_STATE
      state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSED
      See Also:
    • COLUMN_GET_TIME_MILLIS

      public static final String COLUMN_GET_TIME_MILLIS
      millis since 1970 that this message was successfully received
      See Also:
    • COLUMN_FROM_MEMBER_ID

      public static final String COLUMN_FROM_MEMBER_ID
      member id of user who sent the message
      See Also:
    • COLUMN_QUEUE_NAME

      public static final String COLUMN_QUEUE_NAME
      queue name for the message
      See Also:
    • COLUMN_MESSAGE_BODY

      public static final String COLUMN_MESSAGE_BODY
      message body
      See Also:
    • TABLE_GROUPER_MESSAGE

      public static final String TABLE_GROUPER_MESSAGE
      name of the table in the database.
      See Also:
  • Constructor Details

    • GrouperMessageHibernate

      public GrouperMessageHibernate()
  • Method Details

    • getAttemptTimeExpiresMillis

      public 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
      Returns:
      the attemptTimeExpiresMillis
    • setAttemptTimeExpiresMillis

      public 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
      Parameters:
      attemptTimeExpiresMillis1 - the attemptTimeExpiresMillis to set
    • getState

      public String getState()
      state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSED
      Returns:
      the state
    • setState

      public void setState(String state1)
      state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSED
      Parameters:
      state1 - the state to set
    • setId

      public void setId(String id1)
      Specified by:
      setId in interface GrouperMessage
      Parameters:
      id1 - the id to set
    • getFromMemberId

      public String getFromMemberId()
      Specified by:
      getFromMemberId in interface GrouperMessage
      See Also:
    • getId

      public String getId()
      Specified by:
      getId in interface GrouperMessage
      Returns:
      id
    • getMessageBody

      public String getMessageBody()
      body of message (e.g. the json or encrypted message)
      Specified by:
      getMessageBody in interface GrouperMessage
      Returns:
      the messageBody
    • setFromMemberId

      public void setFromMemberId(String fromMemberId1)
      Specified by:
      setFromMemberId in interface GrouperMessage
      See Also:
    • setMessageBody

      public void setMessageBody(String messageBody1)
      body of message (e.g. the json or encrypted message)
      Specified by:
      setMessageBody in interface GrouperMessage
      Parameters:
      messageBody1 - the messageBody to set
    • getSentTimeMicros

      public Long getSentTimeMicros()
      millis since 1970 that this message was sent
      Returns:
      the sentTimeMicros
    • setSentTimeMicros

      public void setSentTimeMicros(Long sentTimeMicros1)
      millis since 1970 that this message was sent
      Parameters:
      sentTimeMicros1 - the sentTimeMicros to set
    • getQueueName

      public String getQueueName()
      queue name for the message
      Returns:
      the queueName
    • setQueueName

      public void setQueueName(String queueName1)
      queue name for the message
      Parameters:
      queueName1 - the queueName to set
    • getGetTimeMillis

      public Long getGetTimeMillis()
      millis since 1970 that this message was successfully received
      Returns:
      the getTimeMillis
    • setGetTimeMillis

      public void setGetTimeMillis(Long getTimeMillis1)
      millis since 1970 that this message was successfully received
      Parameters:
      getTimeMillis1 - the getTimeMillis to set
    • getGetAttemptTimeMillis

      public Long getGetAttemptTimeMillis()
      milliseconds since 1970 that the message was attempted to be received
      Returns:
      the getAttemptTimeMillis
    • setGetAttemptTimeMillis

      public void setGetAttemptTimeMillis(Long getAttemptTimeMillis1)
      milliseconds since 1970 that the message was attempted to be received
      Parameters:
      getAttemptTimeMillis1 - the getAttemptTimeMillis to set
    • getGetAttemptCount

      public Integer getGetAttemptCount()
      how many times this message has been attempted to be retrieved
      Returns:
      the getAttemptCount
    • setGetAttemptCount

      public void setGetAttemptCount(Integer getAttemptCount1)
      Parameters:
      getAttemptCount1 - the getAttemptCount to set
    • clone

      public GrouperAPI clone()
      Description copied from class: GrouperAPI
      deep clone the fields in this object
      Specified by:
      clone in interface GrouperCloneable
      Specified by:
      clone in class GrouperAPI
      Returns:
      the clone of the object
      See Also:
    • getContextId

      public String getContextId()
      Returns:
      context id
    • setContextId

      public void setContextId(String contextId1)
      set context id
      Parameters:
      contextId1 -
    • saveOrUpdate

      public void saveOrUpdate()
      save or update this object
    • delete

      public void delete()
      delete this object
    • getQueueOrTopic

      public String getQueueOrTopic()
      Returns:
      queue or topic
    • setQueueOrTopic

      public void setQueueOrTopic(String theQueueOrTopic1)
      Parameters:
      theQueueOrTopic1 -