Skip to content

Commit

Permalink
BZ-975396: exposing channel access methods in the stateless session i…
Browse files Browse the repository at this point in the history
…nterface
  • Loading branch information
etirelli committed Jun 28, 2013
1 parent 81fd08e commit e672d90
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions kie-api/src/main/java/org/kie/api/runtime/StatelessKieSession.java
@@ -1,5 +1,7 @@
package org.kie.api.runtime;

import java.util.Map;

import org.kie.api.event.KieRuntimeEventManager;
import org.kie.api.runtime.process.StatelessProcessSession;
import org.kie.api.runtime.rule.StatelessRuleSession;
Expand Down Expand Up @@ -103,4 +105,30 @@ public interface StatelessKieSession
*/
void setGlobal(String identifer,
Object value);


/**
* Registers a channel with the given name
*
* @param name the name of the channel
* @param channel the channel instance. It has to be thread safe.
*/
void registerChannel(String name,
Channel channel);

/**
* Unregisters the channel with the given name
*
* @param name
*/
void unregisterChannel(String name);

/**
* Returns a map with all registered channels.
*
* @return
*/
Map< String, Channel> getChannels();


}

0 comments on commit e672d90

Please sign in to comment.