Class ReadEvent


  • public class ReadEvent
    extends Object
    Read event sent to the ReadEventLogger.

    This is a flattened in that it contains either a read bean or list of beans. It is flattened in this way to simplify logging and processing and simply means that it either contains an id or a list of ids.

    • Method Detail

      • getSource

        public String getSource()
        Return a code that identifies the source of the change (like the name of the application).
      • setSource

        public void setSource​(String source)
        Set the source of the change (like the name of the application).
      • setUserId

        public void setUserId​(String userId)
        Set the application user Id.

        This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.

      • setUserIpAddress

        public void setUserIpAddress​(String userIpAddress)
        Set the application users ip address.

        This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.

      • getUserContext

        public Map<String,​StringgetUserContext()
        Return a user context value - anything you set yourself in ChangeLogListener prepare().
      • setUserContext

        public void setUserContext​(Map<String,​String> userContext)
        Set a user context value (anything you like).

        This can be set by the ChangeLogListener in the prepare() method which is called in the foreground thread.

      • setBeanType

        public void setBeanType​(String beanType)
        Set the type of bean read.
      • getQueryKey

        public String getQueryKey()
        Return the query key (relative to the bean type).
      • setQueryKey

        public void setQueryKey​(String queryKey)
        Set the query key (relative to the bean type).
      • getBindLog

        public String getBindLog()
        Return the bind log used when executing the query.
      • setBindLog

        public void setBindLog​(String bindLog)
        Set the bind log used when executing the query.
      • getEventTime

        public long getEventTime()
        Return the event date time.
      • setEventTime

        public void setEventTime​(long eventTime)
        Set the event date time.
      • getId

        public Object getId()
        Return the id of the bean read.
      • setId

        public void setId​(Object id)
        Set the id of the bean read.
      • setIds

        public void setIds​(List<Object> ids)
        Set the ids of the beans read.