Class SessionCommand

java.lang.Object
com.linecorp.centraldogma.server.command.SessionCommand
All Implemented Interfaces:
Command<Void>
Direct Known Subclasses:
CreateSessionCommand, RemoveSessionCommand

public abstract class SessionCommand extends Object
A super class of the Commands which perform operations on the session storage.
  • Method Details

    • executionPath

      public final String executionPath()
      Description copied from interface: Command
      Returns the target that the command is supposed to affect, i.e. the project name for the commands affecting to the project, or the project and repository names for the commands affecting to the repository.
    • type

      public final CommandType type()
      Description copied from interface: Command
      Returns the CommandType of the command.
      Specified by:
      type in interface Command<T>
    • timestamp

      public final long timestamp()
      Description copied from interface: Command
      Returns the time when performing the command, in milliseconds.
      Specified by:
      timestamp in interface Command<T>
    • author

      public final Author author()
      Description copied from interface: Command
      Returns the author who initiated the command.
      Specified by:
      author in interface Command<T>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public final String toString()
      Overrides:
      toString in class Object