Class NotifyConletModel

java.lang.Object
org.jgrapes.core.internal.EventBase<Void>
org.jgrapes.core.Event<Void>
org.jgrapes.webconsole.base.events.NotifyConletModel
All Implemented Interfaces:
Future<Void>, org.jgrapes.core.Associator, org.jgrapes.core.Eligible

public class NotifyConletModel extends org.jgrapes.core.Event<Void>
A decoded notification (as defined by the JSON RPC specification) that invokes a method on a web console component model.

Usually, though not necessarily, the web console component component responds by sending a NotifyConletView to update the web console component representation.

Event Sequence

  • Nested Class Summary

    Nested classes/interfaces inherited from interface java.util.concurrent.Future

    Future.State
  • Field Summary

    Fields inherited from class org.jgrapes.core.internal.EventBase

    completed, completionEvents, invokedFor
  • Constructor Summary

    Constructors
    Constructor
    Description
    NotifyConletModel(RenderSupport renderSupport, String conletId, String method, Object[] params)
    Creates a new event.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the web console component id.
    Returns the method.
    <T> T
    param(int index)
    Returns the selected param, cast to the generic type.
    Returns the parameters.
    Returns the render support.

    Methods inherited from class org.jgrapes.core.Event

    addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieTo, toString

    Methods inherited from class org.jgrapes.core.internal.EventBase

    disableTracking, enqueued, firstResultAssigned, isTracked, onCompletion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.jgrapes.core.Associator

    associated, associated, associated, associatedGet

    Methods inherited from interface java.util.concurrent.Future

    exceptionNow, resultNow, state
  • Constructor Details

    • NotifyConletModel

      public NotifyConletModel(RenderSupport renderSupport, String conletId, String method, Object[] params)
      Creates a new event.
      Parameters:
      renderSupport - the render support from the web console in case the response requires it
      conletId - the web console component model that the notification is directed at
      method - the method to be executed
      params - parameters
  • Method Details

    • renderSupport

      Returns the render support.
      Returns:
      the render support
    • conletId

      public String conletId()
      Returns the web console component id.
      Returns:
      the web console component id
    • method

      public String method()
      Returns the method.
      Returns:
      the method
    • params

      public Object[] params()
      Returns the parameters.
      Returns:
      the parameters
    • param

      public <T> T param(int index)
      Returns the selected param, cast to the generic type.
      Type Parameters:
      T - the generic type
      Parameters:
      index - the index
      Returns:
      the t