Class OnDeleteClause

java.lang.Object
com.espertech.esper.common.client.soda.OnClause
com.espertech.esper.common.client.soda.OnDeleteClause
All Implemented Interfaces:
Serializable

public class OnDeleteClause extends OnClause
A clause to delete from a named window based on a triggering event arriving and correlated to the named window events to be deleted.
See Also:
  • Constructor Details

    • OnDeleteClause

      public OnDeleteClause()
      Ctor.
    • OnDeleteClause

      public OnDeleteClause(String windowName, String optionalAsName)
      Ctor.
      Parameters:
      windowName - is the named window name
      optionalAsName - is the as-provided name of the named window
  • Method Details

    • create

      public static OnDeleteClause create(String windowName, String optionalAsName)
      Creates an on-delete clause.
      Parameters:
      windowName - is the named window name
      optionalAsName - is the optional as-provided name
      Returns:
      on-delete clause
    • toEPL

      public void toEPL(StringWriter writer)
      Renders the clause in textual representation.
      Parameters:
      writer - to output to
    • getWindowName

      public String getWindowName()
      Returns the name of the named window to delete from.
      Returns:
      named window name
    • setWindowName

      public void setWindowName(String windowName)
      Sets the name of the named window.
      Parameters:
      windowName - window name
    • getOptionalAsName

      public String getOptionalAsName()
      Returns the as-provided name for the named window.
      Returns:
      name or null
    • setOptionalAsName

      public void setOptionalAsName(String optionalAsName)
      Sets the as-provided for the named window.
      Parameters:
      optionalAsName - name to set for window