hprose.common.InvokeSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hprose-java Show documentation
Show all versions of hprose-java Show documentation
Hprose is a High Performance Remote Object Service Engine.
It is a modern, lightweight, cross-language, cross-platform, object-oriented, high performance, remote dynamic communication middleware. It is not only easy to use, but powerful. You just need a little time to learn, then you can use it to easily construct cross language cross platform distributed application system.
Hprose supports many programming languages, for example:
* AAuto Quicker
* ActionScript
* ASP
* C++
* Dart
* Delphi/Free Pascal
* dotNET(C#, Visual Basic...)
* Golang
* Java
* JavaScript
* Node.js
* Objective-C
* Perl
* PHP
* Python
* Ruby
* ...
Through Hprose, You can conveniently and efficiently intercommunicate between those programming languages.
This project is the implementation of Hprose for Java.
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* InvokeSettings.java *
* *
* hprose invoke settings class for Java. *
* *
* LastModified: Jun 2, 2016 *
* Author: Ma Bingyao *
* *
\**********************************************************/
package hprose.common;
import java.lang.reflect.Type;
import java.util.Map;
public final class InvokeSettings {
private HproseResultMode mode = HproseResultMode.Normal;
private boolean async = false;
private Boolean byref = null;
private Boolean simple = null;
private Boolean idempotent = null;
private Boolean failswitch = null;
private Boolean oneway = null;
private Integer retry = null;
private Integer timeout = null;
private Type type = null;
private Map userdata = null;
public HproseResultMode getMode() {
return mode;
}
public void setMode(HproseResultMode mode) {
this.mode = mode;
}
public boolean isByref() {
return byref;
}
public void setByref(boolean byRef) {
this.byref = byRef;
}
public boolean isSimple() {
return simple;
}
public void setSimple(boolean simple) {
this.simple = simple;
}
public boolean isIdempotent() {
return idempotent;
}
public void setIdempotent(boolean idempotent) {
this.idempotent = idempotent;
}
public boolean isFailswitch() {
return failswitch;
}
public void setFailswitch(boolean failswitch) {
this.failswitch = failswitch;
}
public int getRetry() {
return retry;
}
public void setRetry(int retry) {
this.retry = retry;
}
public int getTimeout() {
return timeout;
}
public void setTimeout(int timeout) {
this.timeout = timeout;
}
public boolean isOneway() {
return oneway;
}
public void setOneway(boolean oneway) {
this.oneway = oneway;
}
public Type getReturnType() {
return type;
}
public void setReturnType(Type type) {
this.type = type;
}
public boolean isAsync() {
return async;
}
public void setAsync(boolean async) {
this.async = async;
}
public Map getUserData() {
return userdata;
}
public void setUserData(Map userdata) {
this.userdata = userdata;
}
public void copyFrom(InvokeSettings settings) {
mode = settings.mode;
async = settings.async;
if (settings.byref != null) byref = settings.byref;
if (settings.simple != null) simple = settings.simple;
if (settings.failswitch != null) failswitch = settings.failswitch;
if (settings.idempotent != null) idempotent = settings.idempotent;
if (settings.oneway != null) oneway = settings.oneway;
if (settings.retry != null) retry = settings.retry;
if (settings.timeout != null) timeout = settings.timeout;
if (settings.type != null) type = settings.type;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy