Class CallData<A>

java.lang.Object
live.crowdcontrol.cc4j.websocket.data.CallData<A>

public class CallData<A> extends Object
Data describing a remote procedure to be called.
  • Field Details

    • type

      @NotNull protected final @NotNull String type
    • id

      @NotNull protected final @NotNull UUID id
    • method

      @NotNull protected final @NotNull String method
    • args

      @NotNull protected final @NotNull List<@NotNull A> args
  • Constructor Details

    • CallData

      public CallData(@NotNull @NotNull CallDataMethod<A> method, @NotNull @NotNull List<A> args)
      Creates a new call.
      Parameters:
      method - method to call
      args - arguments to provide to the call
  • Method Details

    • getType

      @NotNull public @NotNull String getType()
      The type of the call. This is only known to be call.
      Returns:
      call type
    • getId

      @NotNull public @NotNull UUID getId()
      Gets the randomly generated ID representing this call.
      Returns:
      unique ID
    • getMethod

      @NotNull public @NotNull String getMethod()
      Gets the name of the method being called.
      Returns:
      call method
    • getArgs

      @NotNull public @NotNull List<@NotNull A> getArgs()
      Gets the unmodifiable list of arguments to be provided to the remote method.
      Returns:
      call args