Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2002-2013 the original author or authors.
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
  * the License. You may obtain a copy of the License at
  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
Used to declare a concrete method as a GemFire function implementation

David Turanski
public @interface GemfireFunction {
The name of the registered function. If not provided the simple method name will be used

the function id
	String id() default "";
is the function HA - highly available
	boolean HA() default false;
is the function optimized for write operations
	boolean optimizeForWrite() default false;
controls the maximum number of results sent at one time
	int batchSize() default 0;
normally follows the method return type, i.e., false if void, true otherwise. This allows overriding a void method which uses the resultSender directly.
	boolean hasResult() default false;
New to GrepCode? Check out our FAQ X