/** * Sets the timeout in milliseconds for polling operations. * * @param timeout the timeout in milliseconds for polling operations */ @Property(required = false) public void setPollTimeout(long timeout) { this.pollTimeout = timeout * 1000; // convert milliseconds to microseconds }
@Override protected String getName(Property annotation) { return annotation.name(); }
@Override protected boolean getRequired(Property annotation) { return annotation.required(); } }
/** * Sets the maximum passive port. * * @param maxPort Maximum passive port. */ @Property(required = false) public void setMaxPort(int maxPort) { this.maxPort = maxPort; }
public PropertyInjectable(Property propertyAnnotation, ParamType paramType, Class<?> type, Type genericType, Annotation[] annotations, Member member) { super(paramType, type, genericType, annotations, member); this.name = getPropertyName(propertyAnnotation.name(), member); }
/** * Optionally configures a timeout setting for openning a socket connection. The default wait is 2 minutes. * * @param connectTimeout the timeout in milliseconds */ @Property(required = false) public void setConnectTimeout(int connectTimeout) { this.connectTimeout = connectTimeout; }
public PropertyInjectable(Property propertyAnnotation, ParamType paramType, Class<?> type, Type genericType, Annotation[] annotations, Member member) { super(paramType, type, genericType, annotations, member); this.name = getPropertyName(propertyAnnotation.name(), member); }
/** * Optionally configures a timeout setting for socket connections from the client to a server. The default is 30 minutes. * * @param socketTimeout the timeout in milliseconds */ @Property(required = false) public void setSocketTimeout(int socketTimeout) { this.socketTimeout = socketTimeout; }
/** * Sets the FTP command port. * * @param commandPort Command port. */ @Property(required = false) public void setCommandPort(int commandPort) { this.commandPort = commandPort; }
/** * Sets the optional timeout in milliseconds for sockets that are idle. * * @param timeout timeout in milliseconds. */ @Property(required = false) public void setIdleTimeout(int timeout) { this.idleTimeout = timeout / 1000; // convert to seconds used by Mina }
/** * Optionally used to override default non-transactional deployment behavior in the single-VM runtime. * * @param transactional used to override default non-transactional deployment behavior in the single-VM runtime */ @Property(required = false) public void setTransactional(boolean transactional) { this.transactional = transactional; }
/** * Property to configure whether the runtime should attempt an update by querying a zone leader or the controller. In some topologies, the runtime may pull * deployment information from a persistent store, which eliminates the need to update via a peer or the controller. * * @param synchronize true if the runtime should attempt an update (the default) */ @Property(required = false) public void setSynchronize(boolean synchronize) { this.synchronize = synchronize; }
/** * Sets the users and passwords as a map. * * @param users Map of users to passwords. */ @Property(required = false) public void setUsers(Map<String, String> users) { this.users = users; }
/** * Sets this host to bind the publisher to. * * @param host the host */ @Property(required = false) public void setHost(String host) { this.hostAddress = host; }
/** * Optionally configures a timeout setting for openning a socket connection. The default wait is 2 minutes. * * @param connectTimeout the timeout in milliseconds */ @Property(required = false) public void setConnectTimeout(int connectTimeout) { this.connectTimeout = connectTimeout; }
/** * Optionally configures a timeout setting for socket connections from the client to a server. The default is 30 minutes. * * @param socketTimeout the timeout in milliseconds */ @Property(required = false) public void setSocketTimeout(int socketTimeout) { this.socketTimeout = socketTimeout; }
/** * Sets the address the server should bind to. This is used for multi-homed machines. * * @param listenAddress the address to bind to */ @Property(required = false) public void setListenAddress(String listenAddress) { this.listenAddress = listenAddress; } }
@Property(required = false) public void setHost(String host){ configuredHost = host; }
@Property(required = false) public void setTrustStoreType(String trustStoreType) { this.trustStoreType = trustStoreType; }
@Property(required = false) public void setLogLatency(boolean logLatency) { this.logLatency = logLatency; }