copper-server-api/src/main/java/com/pogeyan/cmis/api/BaseActor.java
/**
	 * Register a message handle for incoming messages.
	 *
	 * @param messageHandle
	 *            - Action name to which the message requests to
	 * @param decoderClassType
	 *            the decoder class type
	 * @param fn
	 *            - Functor handle
	 */
Register a message handle for incoming messages.
@param messageHandle
- Action name to which the message requests to
@param decoderClassType
the decoder class type
@param fn
- Functor handle
Register a message handle for incoming messages . @param messageHandle - Action name to which the message requests to @param decoderClassType the decoder class type @param fn - Functor handle
protected void registerMessageHandle(String messageHandle, Class<?> decoderClassType,
			BiFunction<T, HashMap<String, Object>, CompletableFuture<R>> fn) {
		if (logger.isDebugEnabled()) {
			logger.debug(
					"Registering a message handle for incoming messages from messageHandle:{}, decoderClassType:{}",
					messageHandle, decoderClassType);
		}
		if (!this.messageHandles.containsKey(messageHandle)) {
			ActorHandleContext ctx = new ActorHandleContext();
			ctx.decoderType = decoderClassType;
			ctx.fn = fn;
			this.messageHandles.put(messageHandle, ctx);
		}
	}
protected void registerMessageHandle ( String messageHandle , Class < ? > decoderClassType , BiFunction < T , HashMap < String , Object > , CompletableFuture < R > > fn ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Registering a message handle for incoming messages from messageHandle:{}, decoderClassType:{}" , messageHandle , decoderClassType ) ; } if ( ! this . messageHandles . containsKey ( messageHandle ) ) { ActorHandleContext ctx = new ActorHandleContext ( ) ; ctx . decoderType = decoderClassType ; ctx . fn = fn ; this . messageHandles . put ( messageHandle , ctx ) ; } }
Register a message handle for incoming messages.
Register a message handle for incoming messages .