Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kasource.kaevent.example.guice.channel;
 
 
 import  com.google.inject.Singleton;
 
//CHECKSTYLE:OFF
///CLOVER:OFF
@Singleton
@ChannelListener("temperatureChannel")
public class CommandConsole implements TemperatureChangedListener {
	public CommandConsole() {
    	initilaize();
	}
    void initilaize() {
    	
    }
    
    
    @Override
    public void temperatureChanged(TemperatureChangedEvent event) {
        if (event.getCurrentTemperature() > event.getSource().getOptimalTemperatur()) {
            ..println("Warning " + event.getSource() + " overheating!");
        }
    }
New to GrepCode? Check out our FAQ X