@InterfaceAudience.Public @InterfaceStability.Stable @NotThreadSafe public abstract class ListenerEvent extends Object
Constructor and Description |
---|
ListenerEvent(boolean status,
IHMSHandler handler) |
Modifier and Type | Method and Description |
---|---|
EnvironmentContext |
getEnvironmentContext() |
HMSHandler |
getHandler()
Deprecated.
|
IHMSHandler |
getIHMSHandler() |
Map<String,String> |
getParameters()
Return all parameters of the listener event.
|
boolean |
getStatus() |
void |
putParameter(String name,
String value)
Put a new parameter to the listener event.
|
void |
putParameters(Map<String,String> parameters)
Put a new set the parameters to the listener event.
|
void |
setEnvironmentContext(EnvironmentContext environmentContext)
Set the environment context of the event.
|
public ListenerEvent(boolean status, IHMSHandler handler)
public boolean getStatus()
public void setEnvironmentContext(EnvironmentContext environmentContext)
environmentContext
- An EnvironmentContext object that contains environment parameters sent from
the HMS client.public EnvironmentContext getEnvironmentContext()
@Deprecated public HMSHandler getHandler()
getIHMSHandler()
instead.public IHMSHandler getIHMSHandler()
public final Map<String,String> getParameters()
public void putParameter(String name, String value)
name
- Name of the parameter.value
- Value of the parameter.IllegalStateException
- if a parameter already exists.public void putParameters(Map<String,String> parameters)
parameters
- A Map object with the a set of parameters.IllegalStateException
- if a parameter already exists.Copyright © 2022 The Apache Software Foundation. All rights reserved.