com.espertech.esper.client
Class ConfigurationEngineDefaults.ViewResources

java.lang.Object
  extended by com.espertech.esper.client.ConfigurationEngineDefaults.ViewResources
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ConfigurationEngineDefaults

public static class ConfigurationEngineDefaults.ViewResources
extends java.lang.Object
implements java.io.Serializable

Holds view resources settings.

See Also:
Serialized Form

Constructor Summary
protected ConfigurationEngineDefaults.ViewResources()
          Ctor - sets up defaults.
 
Method Summary
 boolean isAllowMultipleExpiryPolicies()
          By default this setting is false and thereby multiple expiry policies provided by views can only be combined if any of the retain-keywords is also specified for the stream.
 boolean isIterableUnbound()
          Returns flag to indicate whether engine-wide unbound statements are iterable and return the last event.
 boolean isShareViews()
          Returns true to indicate the engine shares view resources between statements, or false to indicate the engine does not share view resources between statements.
 void setAllowMultipleExpiryPolicies(boolean allowMultipleExpiryPolicies)
          Set to false (the default) and thereby disallow multiple expiry policies provided by views and only allow if any of the retain-keywords are also specified for the stream.
 void setIterableUnbound(boolean iterableUnbound)
          Sets flag to indicate whether engine-wide unbound statements are iterable and return the last event.
 void setShareViews(boolean shareViews)
          Set the flag to instruct the engine whether to share view resources between statements for not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationEngineDefaults.ViewResources

protected ConfigurationEngineDefaults.ViewResources()
Ctor - sets up defaults.

Method Detail

isShareViews

public boolean isShareViews()
Returns true to indicate the engine shares view resources between statements, or false to indicate the engine does not share view resources between statements.

Returns:
indicator whether view resources are shared between statements if statements share same-views and the engine sees opportunity to reuse an existing view.

setShareViews

public void setShareViews(boolean shareViews)
Set the flag to instruct the engine whether to share view resources between statements for not

Parameters:
shareViews - is true to share view resources between statements, or false to not share view resources between statements declaring same-views

isAllowMultipleExpiryPolicies

public boolean isAllowMultipleExpiryPolicies()
By default this setting is false and thereby multiple expiry policies provided by views can only be combined if any of the retain-keywords is also specified for the stream.

If set to true then multiple expiry policies are allowed and the following statement compiles without exception: "select * from MyEvent.win:time(10).win:time(10)".

Returns:
allowMultipleExpiryPolicies indicator whether to allow combining expiry policies provided by views

setAllowMultipleExpiryPolicies

public void setAllowMultipleExpiryPolicies(boolean allowMultipleExpiryPolicies)
Set to false (the default) and thereby disallow multiple expiry policies provided by views and only allow if any of the retain-keywords are also specified for the stream.

If set to true then multiple expiry policies are allowed and the following statement compiles without exception: "select * from MyEvent.win:time(10).win:time(10)".

Parameters:
allowMultipleExpiryPolicies - indicator whether to allow combining expiry policies provided by views

isIterableUnbound

public boolean isIterableUnbound()
Returns flag to indicate whether engine-wide unbound statements are iterable and return the last event.

Returns:
indicator

setIterableUnbound

public void setIterableUnbound(boolean iterableUnbound)
Sets flag to indicate whether engine-wide unbound statements are iterable and return the last event.

Parameters:
iterableUnbound - to set

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com