Record Class LauncherEvent.AgentUpdated
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.LauncherEvent.AgentUpdated
- Record Components:
sha- the new agent's SHA-256
- All Implemented Interfaces:
LauncherEvent
- Enclosing interface:
LauncherEvent
The launcher has a new agent; clients injected before it are now stale.
-
Nested Class Summary
Nested classes/interfaces inherited from interface LauncherEvent
LauncherEvent.AgentUpdated, LauncherEvent.ClientExited, LauncherEvent.ClientStarted, LauncherEvent.ClientStateChanged, LauncherEvent.DataPhase, LauncherEvent.DataUpdateApplied, LauncherEvent.DataUpdateAvailable, LauncherEvent.EventsDropped, LauncherEvent.ExitReason, LauncherEvent.LicenceChanged, LauncherEvent.ServiceLost, LauncherEvent.ServiceRestored, LauncherEvent.ServiceShuttingDown -
Constructor Summary
ConstructorsConstructorDescriptionAgentUpdated(String sha) Creates an instance of aAgentUpdatedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sha()Returns the value of thesharecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentUpdated
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sha
-