Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

what is a callable in java

public class EventLoggingTask implements  Runnable{
    private Logger logger
      = LoggerFactory.getLogger(EventLoggingTask.class);

    @Override
    public void run() {
        logger.info("Message");
    }
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #callable #java
ADD COMMENT
Topic
Name
4+8 =