Example usage for java.lang Thread subclass-usage

List of usage examples for java.lang Thread subclass-usage

Introduction

In this page you can find the example usage for java.lang Thread subclass-usage.

Usage

From source file YieldingThread.java

public class YieldingThread extends Thread {

    private int countDown = 5;

    private static int threadCount = 0;

From source file Sleeper.java

class Sleeper extends Thread {
    private int duration;

    public Sleeper(String name, int sleepTime) {
        super(name);
        duration = sleepTime;

From source file org.aevans.goat.net.IdleConnectionEvictor.java

/**
 * Idle Conenction Evictor for Apache HTTP Pools
 * @author Andrew Evans
 * Copyright 2016
 * License : Free BSD
 */

From source file Daemon.java

class Daemon extends Thread {
    private Thread[] t = new Thread[10];

    public Daemon() {
        setDaemon(true);
        start();

From source file com.ebay.logstorm.server.platform.TaskExecutor.java

/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with

From source file Main.java

public class Main extends Thread {
    private ServerSocket serverSocket;

    public Main(int port) throws IOException {
        serverSocket = new ServerSocket(port);
    }

From source file MainClass.java

public class MainClass extends Thread {
    private ServerSocket serverSocket;

    public MainClass(int port) throws IOException {
        serverSocket = new ServerSocket(port);
    }

From source file Blocked.java

class Blocked extends Thread {
    public Blocked() {
        System.out.println("Starting Blocked");
        start();
    }

From source file PoolServerBase.java

public class PoolServerBase extends Thread {
    protected Socket socket;

    static PoolServerBase head = null;

    protected PoolServerBase next = null;

From source file MainClass.java

public class MainClass extends Thread {
    private ServerSocket serverSocket;

    public MainClass() throws IOException {
        serverSocket = new ServerSocket(2000);
    }